#ifndef QPAGEWIDGET_H
#define QPAGEWIDGET_H

#include <QVector>
#include "pageframe.h"
#include "systemtray.h"
#include "globaldef.h"

namespace Ui {
class PageWidget;
}

class PAGEFRAME_EXPORT QPageWidget : public IPageFrame
{
    Q_OBJECT

#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
    Q_PLUGIN_METADATA(IID "ipageframe" FILE "ipageframe.json")
#endif
    Q_INTERFACES(IPageFrame)

public:
    explicit QPageWidget(QWidget *parent = nullptr);
    ~QPageWidget();

    virtual void addPage(QWidget *page, const QString& name) override;
    virtual void showPage(int index) override;

public slots:
    void receiveShow(int index);

private:
    SystemTray* syetemTray;
    Ui::PageWidget *ui;
};

#endif // QPAGEWIDGET_H
